package com.hrms.web.controller.tool;

import com.hrms.patient.core.domain.entity.SysUser;
import com.hrms.patient.core.domain.entity.WechatDocter;

public class ProduceRegularUser {
    public SysUser ProduceDocter(String openId, WechatDocter docter){
        SysUser user = new SysUser();
        user.setOpenId(openId);
        user.setUserName(docter.getDocName());
        user.setPassword("$2a$10$lLiPm2beV8nF9EC3Y/3Qs.GjWHOeEcefAT.O39cDkrLzffClTSPn2");
        user.setNickName(openId);
        user.setStatus("0");
        return user;
    }
    public SysUser ProduceUser(String openId){
        SysUser user = new SysUser();
        user.setOpenId(openId);
        user.setUserName(openId + "A");
        user.setPassword("$2a$10$lLiPm2beV8nF9EC3Y/3Qs.GjWHOeEcefAT.O39cDkrLzffClTSPn2");
        user.setNickName(openId + "C");
        user.setStatus("0");
        return user;
    }
}
